package com.ruoyi.ora.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ora.mapper.MemberLevelDescMapper;
import com.ruoyi.ora.domain.MemberLevelDesc;
import com.ruoyi.ora.service.IMemberLevelDescService;

/**
 * 会员等级配置多语言Service业务层处理
 * 
 * @author liuwp
 * @date 2024-11-25
 */
@Service
public class MemberLevelDescServiceImpl implements IMemberLevelDescService 
{
    @Autowired
    private MemberLevelDescMapper memberLevelDescMapper;

    /**
     * 查询会员等级配置多语言
     * 
     * @param id 会员等级配置多语言主键
     * @return 会员等级配置多语言
     */
    @Override
    public MemberLevelDesc selectMemberLevelDescById(Long id)
    {
        return memberLevelDescMapper.selectMemberLevelDescById(id);
    }

    /**
     * 查询会员等级配置多语言列表
     * 
     * @param memberLevelDesc 会员等级配置多语言
     * @return 会员等级配置多语言
     */
    @Override
    public List<MemberLevelDesc> selectMemberLevelDescList(MemberLevelDesc memberLevelDesc)
    {
        return memberLevelDescMapper.selectMemberLevelDescList(memberLevelDesc);
    }

    /**
     * 根据业务主键查询一条记录：会员等级配置多语言
     *
     * @param memberLevelDesc 会员等级配置多语言
     * @return 会员等级配置多语言
     */
    @Override
    public MemberLevelDesc selectOneMemberLevelDesc(MemberLevelDesc memberLevelDesc)
    {
        return memberLevelDescMapper.selectOneMemberLevelDesc(memberLevelDesc);
    }

    /**
     * 新增会员等级配置多语言
     * 
     * @param memberLevelDesc 会员等级配置多语言
     * @return 结果
     */
    @Override
    public int insertMemberLevelDesc(MemberLevelDesc memberLevelDesc)
    {
        return memberLevelDescMapper.insertMemberLevelDesc(memberLevelDesc);
    }

    /**
     * 修改会员等级配置多语言
     * 
     * @param memberLevelDesc 会员等级配置多语言
     * @return 结果
     */
    @Override
    public int updateMemberLevelDesc(MemberLevelDesc memberLevelDesc)
    {
        return memberLevelDescMapper.updateMemberLevelDesc(memberLevelDesc);
    }

    @Override
    public int updateMemberLevelDescCondition(MemberLevelDesc memberLevelDesc, MemberLevelDesc memberLevelDescCondition)
    {
        return memberLevelDescMapper.updateMemberLevelDescCondition(memberLevelDesc, memberLevelDescCondition);
    }

    /**
     * 批量删除会员等级配置多语言
     * 
     * @param ids 需要删除的会员等级配置多语言主键
     * @return 结果
     */
    @Override
    public int deleteMemberLevelDescByIds(Long[] ids)
    {
        return memberLevelDescMapper.deleteMemberLevelDescByIds(ids);
    }

    /**
     * 删除会员等级配置多语言信息
     * 
     * @param id 会员等级配置多语言主键
     * @return 结果
     */
    @Override
    public int deleteMemberLevelDescById(Long id)
    {
        return memberLevelDescMapper.deleteMemberLevelDescById(id);
    }

    /**
     * 条件删除会员等级配置多语言
     *
     * @param memberLevelDesc 会员等级配置多语言
     * @return 结果
     */
    @Override
    public int deleteMemberLevelDescByCondition(MemberLevelDesc memberLevelDesc)
    {
        return memberLevelDescMapper.deleteMemberLevelDescByCondition(memberLevelDesc);
    }

}
